package Week03.Day02.Practice1;
/**
 * 测试
 */
public class Test {
    public void search(Sports sports){
        sports.dive();
        sports.shoot();
        sports.dive();
    }
    public void search1(Dive dive){
        dive.dive();
    }
    public void search2(Sprint sprint){
       sprint.sprint();
    }
    public void search3(Shoot shoot){
        shoot.shoot();
    }
    public static void main(String[] args) {
        Test test = new Test();
        test.search(new AllAthlete("刘大",20));
        test.search1(new DiveAthlete("刘二",18));
        test.search2(new SprintAthlete("刘三",19));
        test.search3(new ShootAthlete("刘四",21));
    }
}
